#pragma once
#include<google/protobuf/service.h>
#include<string>


class MprpcController:public google::protobuf::RpcController
{
public:
    MprpcController();
    void Reset();
    bool Failed() const; //是否出错
    std::string ErrorText() const;
    void SetFailed(const std::string& reason);

    //目前尚未实现具体的功能
    void StartCancel();
    bool IsCanceled() const;
    void NotifyOnCancel(google::protobuf::Closure* callback);

private:
    bool m_failed; //Rpc方法执行过程中的状态
    std::string m_errText;



};